/*
 * Created by SharpDevelop.
 * User: phtrung
 * Date: 10/27/2008
 * Time: 11:12 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;

namespace popLib
{
	/// <summary>
	/// Description of ReturnSet.
	/// </summary>
	public class ReturnSet{
		bool success;
		object result;
		string message;
		
		public ReturnSet(){
			this.success = false;
		}
		
		public ReturnSet( bool _success ){
			this.success = _success;
		}
		
		public ReturnSet( bool _success, object _result ){
			this.result  = _result;
			this.success = _success;
		}
		
		public ReturnSet( bool _success, object _result, string _message ){
			this.result  = _result;
			this.success = _success;
			this.message = _message;
		}
		
		public bool Success{
			get{ return success; }
			set{ this.success = value; }
		}
		
		public object Result{
			get{ return result; }
			set{ this.result = value; }
		}
		
		public string Message{
			get{ return message; }
			set{ this.message = value; }
		}		
	}

    public class ObjectData
    {
        public object ID { get; set; }
        public string Name { get; set; }
    }
}
